<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>实验室管理</title>
    <!-- Bootstrap core CSS -->
    <link href="__STATIC__/admin/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/index.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/config.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/jquery.pagination.css" rel="stylesheet">

</head>

<body>
{:widget('Blog/header')}


<!-- 页面主体 -->
<div class="dh mainbox">
    {:widget('Blog/slider')}
    <!-- 右边主显示部分 -->
    <div class="main-rightbox">
        <div class="mainrightbox">
            <!-- 路径导航 -->
            <ol class="breadcrumb">
                <li><a href="index.html">首页</a></li>
                <li class="active">基础管理</li>
                <li class="active">菜单管理</li>
            </ol>
            <!-- 显示表格 -->
            <div class="main_box">
                <!-- 顶部搜索添加框 -->
                <div class="row">
                    <!-- 搜索框 -->
                    <div class="col-lg-2 col-md-4">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search for...">
                            <span class="input-group-btn">
                                  <button class="btn btn-default" type="button">搜索</button>
                            </span>
                        </div>
                    </div>
                    <div class="col-li-2 col-md-4">
                        <button type="button" class="btn btn-primary adduser" onclick="addfun()">添加</button>
                    </div>
                </div>
                <!-- 表格显示区域 -->
                <div class="maintab">
                    <table class="table table-striped table-bordered table-hover" id="sample_1">
                        <thead>
                        <tr>
                            <th><input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes" /></th>
                            <th>labid</th>
                            <th>实验室类别</th>
                            <th class="">实验室名</th>
                            <th class="">地点</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="lablist" id="vo"}
                        <tr class="odd gradeX">
                            <td><input type="checkbox" class="checkboxes" value="1" /></td>
                            <td>{$vo.labid}</td>
                            <td>{$vo.typename}</td>
                            <td>{$vo.labname}</td>
                            <td>{$vo.labsit}</td>
                            <td>
                                <span class="label label-success cp editmsg" onclick="editfun()">编辑</span>
                                <span class="label label-success cp deletelist deletebgc">删除</span>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                    <div id="pagepart">{$page}</div>

                </div>

                <!--&lt;!&ndash; 分页 &ndash;&gt;-->
                <!--<div class="text-center">-->
                    <!--&lt;!&ndash; 分页 &ndash;&gt;-->
                    <!--<div id="pagination3" class="page fl"></div>-->
                <!--</div>-->


                </div>
            </div>

        </div>
    </div>
</div>
<!-- 引入公共js文件 -->
<script src="__STATIC__/admin/js/jquery-3.3.1.min.js"></script>
<script src="__STATIC__/admin/js/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap.js"></script>
<!-- <script src="js/modal.js"></script> -->
<script src="__STATIC__/admin/js/jquery.pagination.min.js"></script>

<script>
    /**
     *  此方法为切换左边菜单的js文件
     */
    $(".list_dt").on("click", function() {
        $('.list_dd').stop();
        $(this).siblings("dt").removeAttr("id");
        if ($(this).attr("id") == "open") {
            $(this).removeAttr("id").siblings("dd").slideUp();
        } else {
            $(this).attr("id", "open").next().slideDown().siblings("dd").slideUp();
        }
    });
    /**
     * 退出登录
     */
    function logout() {
        window.location.href = "login.html";
    };


    /**
     * 页面挂载数据方法
     */
    function getdata() {

    }

    function addfun() {
        window.location.href = "increaseOrEditor.html";
    }

    function editfun() {
        window.location.href = "increaseOrEditor.html";
    }
</script>
</body>

</html>